import Vue from 'vue'
import VueRouter from 'vue-router'

const routes = [{
  path: '/login',
  name: 'login',
  component: () => import("../views/Login.vue")
},{
  path: '/',
  name: 'index',
  component: () => import("../views/Index.vue"),
  children: [{
    path: '',
    name: 'default',
    component: () => import("../views/Default.vue"),
    meta: ''
  },{
    path: '/operations/sale_rent/list/:srType',
    name: 'saleRent',
    component: () => import("../views/operations/sale_rent/list.vue"),
    meta: 'saleRent'
  },{
    path: '/operations/protocol_template/list',
    name: 'protocolTemplate',
    component: () => import("../views/operations/protocol_template/list.vue"),
    meta: 'protocolTemplate'
  }]
}]

Vue.use(VueRouter)

const router = new VueRouter({
  routes
})
export default router;
